import Vue from 'vue'
import Router from 'vue-router'
//登录模板
import loginTemp from '../components/loginTemp'
import loginBox from '../components/loginBox'
import Index from "../components/Index"
import myDouban from '../components/myDouban'

import myDynamic from '../components/myDynamic';
import myAlbum from '../components/myAlbum';

import pubAlbum from "../components/pubAlbum";
import pubDynamic from "../components/pubDynamic"
import modifyInfo from "../components/modifyInfo"
import searchPage from "../components/searchPage"
import dynamicDetails from "../components/dynamicDetails"
Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/details',
            component: dynamicDetails
        },
        {
            path: '/Index',
            component: Index,
        },
        {
            path: '/search',
            component: searchPage,
        },
        {
            path: '/myDouban',
            component: myDouban,
            children: [
                {
                    path: '/myDouban/myDynamic',
                    component: myDynamic
                },
                {
                    path: '/myDouban/myAlbum',
                    component: myAlbum
                },
                {
                    path: '/myDouban/pubDynamic',
                    component: pubDynamic
                },
                {
                    path: '/myDouban/pubAlbum',
                    component: pubAlbum
                },
                {
                    path: '/myDouban/modifyInfo',
                    component: modifyInfo
                },
                {
                    path: '/myDouban/',
                    component: myDynamic
                },
            ]
        },
        {
            path: '/pop',
            component: loginBox,
            children: [
                {
                    path: '/pop/login',
                    component: loginTemp
                },
                {
                    path: '/pop/register',
                    component: loginTemp
                },
                {
                    path: '/pop/',
                    component: loginTemp
                },
            ]
        },
        {
            path: '/',
            component: Index
        },

    ]
})

